#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7

echo "Test Case 1: Testing 23/23..."

tc=`java -jar Grades.jar 23 23`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi

echo "Test Case 2: Testing 66/77..."

tc=`java -jar Grades.jar 66 77`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi

echo "Test Case 3: Testing 40/29..."

tc=`java -jar Grades.jar 40 29`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi

echo "Test Case 4: Testing 90/77..."

tc=`java -jar Grades.jar 90 77`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi

echo "Test Case 5: Testing 60/73..."

tc=`java -jar Grades.jar 60 73`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi
